package org.cy.shixun.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;


/**
 * 类名称：Orders
 * 描述：订单
 *
 * @author: cy
 * @data: 2023/06/29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 订单号
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;


    /**
     * 账号
     */
    private String account;


    /**
     * 下单时间
     */
    private LocalDateTime orderedTime=LocalDateTime.now();

    /**
     * 是否付款
     */
    @TableField("payedOrNot")
    private Boolean payedOrNot=false;


    /**
     * 付款金额
     */
    private BigDecimal payAmount;

    /**
     * 配送地址
     */
    private String sendAddress;

    /**
     * 客户电话
     */
    private String clientPhone;

    /**
     * 收货人名字
     */
    private String name;
}
